package com.liang.design;

/**
 * @author lsm
 * @ClassName Singleton_01.java
 * @Description 懒汉式(不安全)
 * @createTime 2023年12月01日 10:34:00
 */
public class Singleton_01 {

    private static Singleton_01 singleton01;

    private Singleton_01(){}

    public static Singleton_01 getInstance(){
        if (null == singleton01){
            singleton01 = new Singleton_01();
        }
        return singleton01;
    }
}
